package com.lgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lgl.dto.ArticleDto;
import com.lgl.entity.Article;
import com.lgl.entity.ResponseResult;
import com.lgl.vo.AdminArticleDetailVo;

public interface ArticleService extends IService<Article> {

    ResponseResult queryHotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(ArticleDto articleDto);

    ResponseResult getList(Integer pageSize, Integer pageNum, String title, String summary);


    ResponseResult updateArticle(AdminArticleDetailVo adminArticleDetailVo);

    ResponseResult deleteArticle(Long id);

    ResponseResult getAdminArticleDetil(Long id);

}

